﻿using LimaLims.Core.Entity.Equipment;
using LimaLims.Core.Entity.TestCenter;
using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;

namespace LimaLims.Core.Entity.Experiment
{
    /// <summary>
    /// 绝缘电阻
    /// </summary>
    [Comment("绝缘电阻试验信息")]
    public class InsulationResistance : DEntityTenant
    {
        /// <summary>
        /// 出厂编号
        /// </summary>
        [Comment("出厂编号")]
        public string FactoryNumbe { get; set; }

        /// <summary>
        /// 试验任务ID
        /// </summary>
        [Comment("试验任务ID")]
        public long? ExperimentTaskId { get; set; }
        public ExperimentTask ExperimentTask { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        [Comment("设备Id")]
        public long EquipmentInfoId { get; set; }
        public EquipmentInfo EquipmentInfo { get; set; }

        /// <summary>
        /// 环境温度
        /// </summary>
        [Comment("环境温度")]
        public float? AmbientTemperature { get; set; }

        /// <summary>
        /// 环境湿度
        /// </summary>
        [Comment("环境湿度")]
        public float? AmbientHumidity { get; set; }

        /// <summary>
        /// 试验类型（绝缘电阻、吸收比、极化指数、DC测试、AC测试、步进电压测试）
        /// </summary>
        [Comment("试验类型")]
        public string TestType { get; set; }

        /// <summary>
        /// 测试部位（高压-中压、低压及地，中压-高压、低压及地，低压-高压、中压及地，高压中压-低压及地，高压、中压、低压-及地，高压-中压，中压-低压）
        /// </summary>
        [Comment("测试部位")]
        public string Position { get; set; }

        /// <summary>
        /// 试验电压
        /// </summary>
        [Comment("试验电压")]
        public float? TestVoltage { get; set; }

        /// <summary>
        /// 吸收比
        /// </summary>
        [Comment("吸收比")]
        public float? AbsorptionRatio { get; set; }

        /// <summary>
        /// R15
        /// </summary>
        [Comment("R15")]
        public float? R15 { get; set; }

        /// <summary>
        /// R60
        /// </summary>
        [Comment("R60")]
        public float? R60 { get; set; }

        /// <summary>
        /// 试验结果
        /// </summary>
        public ExperimentResult? Result { get; set; }

    }
}
